<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const obj = {
        a: 1,
        b: 2,
      };

      Reflect.set(obj, "a", 10);
      console.log(Reflect.get(obj, "a"));
      Reflect.deleteProperty(obj, "a");
      console.log(Reflect.get(obj, "a"));

      function method(a, b) {
        console.log(a, b);
      }

      Reflect.apply(method, null, [3, 4]);

      function Test(a, b) {
        this.a = a;
        this.b = b;
      }

      const t = Reflect.construct(Test, [2, 4]);
      console.log(t);
    </script>
  </body>
</html>
